using System;
using System.Collections.Generic;
using System.Text;

namespace Renderer.DataStructures
{
    struct Ray3D
    {
        private Vector3D origin;
        private Vector3D direction;

        public Vector3D Origin
        {
            get { return origin; }
            set { origin = value; }
        }

        public Vector3D Direction
        {
            get { return direction; }
            set { direction = value.Normalize(); }
        }

        public Ray3D(Vector3D origin, Vector3D direction)
        {
            this.origin = origin;
            this.direction = direction.Normalize();
        }
    }
}
